package com.ybwh.springboot2.okadmin.sys.model.vo.common;

import com.alibaba.fastjson.JSON;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;


/**
 * 验证码信息
 */
@Data
public class Captcha implements Serializable {
    @NotBlank(message = "客户端代码不能为空")
    @ApiModelProperty(value = "客户端代码（请求验证码图片的参数）")
    protected String clientCode;

    @NotBlank(message = "验证码不能为空")
    @ApiModelProperty(value = "验证码")
    protected String captcha;

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
